Represents a context within which to render a session file.
Namespace: Microsoft.LearningComponents
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public class RenderContext |
| Name | Description | |
| Ð | RenderContext () | Constructor. Create a RenderContext in order to display content of a LearningSession. |
| Ð | RenderContext (string, HttpResponse) | Constructor. Create a RenderContext that renders session content to an HTTP response. |
| Name | Description | |
| Ð | EmbeddedUIResourcePath | Gets and sets the path to the folder containing resources for UI elements contained in the dynamically generated content. This is not a path to a file within the content, but rather a path outside the package to resources that are part of the Microsoft Learning Components installation and required to render dynamic views of the content such as LRM content. |
| Ð | FormHiddenControls | Gets a list of hidden controls to be added in the rendered form. The key in the collection is the control id, the value is the value of the control. If a form is not rendered, this value is ignored. |
| Ð | IisCompatibilityModeExtensions | The collection of extensions for which files will be transmitted in a way that is most compatible with the method used in IIS. This is slower than the normal process of rendering files, but can be used for cases where specific file types do not render correctly. |
| Ð | MimeType | Gets the mime type of the content written to the output stream. |
| Ð | MimeTypeMapping | Gets the mapping between file name extension and mime type. The key is the file name extension (including the initial period), the value is the mime type mapped to that extension. |
| Ð | RelativePath | Gets and sets the package-relative path of the requested file to render. |
| Ð | Response | Gets the response associated with this context. |
| Ð | Script | Gets or sets Represents JScript source code, i.e. a series of Unicode characters intended to be written into a <script>...</script> block of a rendered HTML file. The script will be placed in such a way that it is run immediately following the page load. |
| Ð | ShowCorrectAnswers | Get and sets a value indicating whether correct answers should be displayed in the content, if possible. Regardless of this value, answers may only be shown if it is supported in the current activity format for the current |
| Ð | ShowReviewerInformation | Gets and sets a value indicating whether sections of the content intended for a reviewer of a session (and not the learner) should be displayed in the rendered content. If not set, reviewer information will not be shown. |
This class provides minimal validation when properties are set on it. An instance of the RenderContext class is passed to a LearningSession object when LearningSession.Render is called. When the Render method is called, then the values in RenderContext are validated as required at the time the request is made to render and may result in an exception at that time.